/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cq.bd.service;

import com.cq.bd.dto.ChgPwdResult;
import com.cq.bd.dto.LoginResult;
import com.cq.bd.security.UserDetails;

/**
 * 登陆服务
 * 
 * @author huangmy
 * @date   2009-10-2
 */
public interface LoginService {
	/**
	 * 使用用户名、密码登陆
	 * 
	 * @param loginCode
	 * @param password
	 * @return
	 */
	public LoginResult doLogin(String loginCode, String password);
	
	/**
	 * 修改密码
	 * 
	 * @param oldPwd
	 * @param newPwd
	 * @return
	 */
	public ChgPwdResult doChangePassword(long loginId, String oldPwd, String newPwd);
	
	/**
	 * 退出登录
	 * 
	 * @param loginId
	 */
	public void doLoginOut(UserDetails ud);
}
